import asyncio

async def func():
    print("我是协程函数,已执行")

obj = func()
print(obj)

# 方法1    python 3.5
# loop = asyncio.get_event_loop()
# loop.run_until_complete(obj)
# 方法2    python 3.7及以上
asyncio.run(obj)

print(asyncio.iscoroutine(obj))
print(asyncio.iscoroutinefunction(func))